package com.ruoyi.monitor.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 监控调取申请对象 monitor_retrieval_request
 * 
 * @author lh
 * @date 2025-04-16
 */
public class MonitorRetrievalRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long requestId;

    /** 申请人ID */
    @Excel(name = "申请人ID")
    private Long userId;

    /** 申请地点ID */
    @Excel(name = "申请地点ID")
    private Long locationId;

    /** 调取开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调取开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 调取结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调取结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 申请理由 */
    @Excel(name = "申请理由")
    private String reason;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 审批人ID */
    @Excel(name = "审批人ID")
    private Long approverId;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    public void setRequestId(Long requestId) 
    {
        this.requestId = requestId;
    }

    public Long getRequestId() 
    {
        return requestId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setLocationId(Long locationId) 
    {
        this.locationId = locationId;
    }

    public Long getLocationId() 
    {
        return locationId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setApproverId(Long approverId) 
    {
        this.approverId = approverId;
    }

    public Long getApproverId() 
    {
        return approverId;
    }

    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("requestId", getRequestId())
            .append("userId", getUserId())
            .append("locationId", getLocationId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("reason", getReason())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("approverId", getApproverId())
            .append("approveTime", getApproveTime())
            .toString();
    }
}
